import request from '@/utils/request'

/**
 * 保存
 * @param {*} data
 * @returns
 */
export function freezeAndThawSave(data) {
  data.schedule = 'A'
  return request({
    url: '/api/v1/ctmCustomerChange/createOrSubmit/freeze',
    method: 'POST',
    data
  })
}
/**
 * 提交
 * @param {*} data
 * @returns
 */
export function freezeAndThawSubmit(data) {
  data.schedule = 'B'
  return request({
    url: '/api/v1/ctmCustomerChange/createOrSubmit/freeze',
    method: 'POST',
    data
  })
}

export function freezeAndThawDetail(id) {
  return request({
    url: `/api/v1/ctmCustomerChange/detail/freeze/${id}`,
    method: 'GET'
  })
}

